package ru.amse.tsyganov.jumleditor.model.activity;

import ru.amse.tsyganov.jumleditor.model.common.State;
import ru.amse.tsyganov.jumleditor.storing.TagNames;

public class ActionState extends State {
	
	public enum CallActionMode {
		SYNCHRONOUS {
			public String toString() {
				return "Synchronous";
			}
		},
		
		ASYNCHRONOUS {
			public String toString() {
				return "Asynchronous";
			}
		};
		
		public abstract String toString();
	}
	
	private CallActionMode callActionMode = CallActionMode.SYNCHRONOUS;
	
	public ActionState() {
		setName("Action state");
	}

	public CallActionMode getCallActionMode() {
		return callActionMode;
	}

	public void setCallActionMode(CallActionMode callActionMode) {
		this.callActionMode = callActionMode;
	}

	public String getClassName() {
		return TagNames.ACTION_STATE;
	}

}
